.class public final Lcom/burstly/lib/util/DensityDpiProvider;
.super Ljava/lang/Object;
.source "DensityDpiProvider.java"


# static fields
.field public static final HIGH:Ljava/lang/String; = "High"

.field public static final LOW:Ljava/lang/String; = "Low"

.field public static final MEDIUM:Ljava/lang/String; = "Medium"

.field public static final XHIGH:Ljava/lang/String; = "XHigh"

.field private static sDefaultDensityValue:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 49
    const-string v0, "Low"

    sput-object v0, Lcom/burstly/lib/util/DensityDpiProvider;->sDefaultDensityValue:Ljava/lang/String;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 54
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 55
    return-void
.end method

.method public static getDisplayDensity(Landroid/util/DisplayMetrics;)Ljava/lang/String;
    .locals 2
    .parameter "metrics"

    .prologue
    .line 75
    iget v1, p0, Landroid/util/DisplayMetrics;->densityDpi:I

    sparse-switch v1, :sswitch_data_0

    .line 89
    sget-object v0, Lcom/burstly/lib/util/DensityDpiProvider;->sDefaultDensityValue:Ljava/lang/String;

    .line 92
    .local v0, density:Ljava/lang/String;
    :goto_0
    return-object v0

    .line 77
    .end local v0           #density:Ljava/lang/String;
    :sswitch_0
    const-string v0, "Low"

    .line 78
    .restart local v0       #density:Ljava/lang/String;
    goto :goto_0

    .line 80
    .end local v0           #density:Ljava/lang/String;
    :sswitch_1
    const-string v0, "Medium"

    .line 81
    .restart local v0       #density:Ljava/lang/String;
    goto :goto_0

    .line 83
    .end local v0           #density:Ljava/lang/String;
    :sswitch_2
    const-string v0, "High"

    .line 84
    .restart local v0       #density:Ljava/lang/String;
    goto :goto_0

    .line 86
    .end local v0           #density:Ljava/lang/String;
    :sswitch_3
    const-string v0, "XHigh"

    .line 87
    .restart local v0       #density:Ljava/lang/String;
    goto :goto_0

    .line 75
    :sswitch_data_0
    .sparse-switch
        0x78 -> :sswitch_0
        0xa0 -> :sswitch_1
        0xf0 -> :sswitch_2
        0x140 -> :sswitch_3
    .end sparse-switch
.end method

.method public static setDefaultDensityValue(Ljava/lang/String;)V
    .locals 1
    .parameter "densityValue"

    .prologue
    .line 61
    const-string v0, "Low"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "Medium"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "High"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "XHigh"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 63
    :cond_0
    sput-object p0, Lcom/burstly/lib/util/DensityDpiProvider;->sDefaultDensityValue:Ljava/lang/String;

    .line 65
    :cond_1
    return-void
.end method
